<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">查询结果</h3>
</div>
<div class="modal-body">

<switch name="segment">
	<case value="category">
			<table>
			<volist name="guideList" id="vo">
				<eq name="i" value="1" >
				<thead>
					<tr>
						<th width="10%">编号</div>
						<th width="30%">分类名</div>
						<th width="60%">网址</div>
					</tr>
				</thead>
				</eq>
				<if condition="$i%2 eq 0">
					<tr class="color_back">
				<else />
					<tr>
				</if>
                    <td >{$vo.id}</td>
                    <neq name="vo['allow_publish']" value="0">
                        <td ><a href="http://{$_SERVER['SERVER_NAME']}__ROOT__/Home/Article/lists/category/{$vo.name}.html" target="_blank">{$vo.title}</a></td>
                        <td >http://{$_SERVER['SERVER_NAME']}__ROOT__/Home/Article/lists/category/{$vo.name}.html <span class="hidden click_copy text-danger">点此复制</span></td>
                    <else />
                        <td ><a href="http://{$_SERVER['SERVER_NAME']}__ROOT__/Home/Article/lists/category/{$vo.name}.html" target="_blank">{$vo.title}</a></td>
                        <td >http://{$_SERVER['SERVER_NAME']}__ROOT__/Home/Article/index/category/{$vo.name}.html <span class="hidden click_copy text-danger">点此复制</span></td>
                    </neq>
				</tr>
			</volist>
			</table>
	</case>
	<case value="article">
			<table>
			<volist name="guideList" id="vo">
				<eq name="i" value="1" >
				<thead>
					<tr>
						<th width="10%">编号</div>
						<th width="30%">文章标题</div>
						<th width="60%">网址</div>
					</tr>
				</thead>
				</eq>
				<if condition="$i%2 eq 0">
					<tr class="color_back">
				<else />
					<tr>
				</if>
					<td >{$vo.id}</div>
					<td ><a href="http://{$_SERVER['SERVER_NAME']}__ROOT__/Home/Article/detail/id/{$vo.id}.html" target="_blank">{$vo.title}</a></td>
					<td >http://{$_SERVER['SERVER_NAME']}__ROOT__/Home/Article/detail/id/{$vo.id}.html  <span class="hidden click_copy text-danger">点此复制</span></td>
				</tr>
			</volist>
			</table>
	</case>
	<case value="text">
	<table>
	<volist name="guideList" id="vo">
		<eq name="i" value="1" >
		<thead>
			<tr>
				<th width="10%">文本编号</div>
				<th width="30%">文本内容</div>
			</tr>
		</thead>
		</eq>
		<if condition="$i%2 eq 0">
			<tr class="color_back">
		<else />
			<tr>
		</if>
			<td >{$vo.id}</div>
			<td >{$vo.content}  <span class="hidden click_copy text-danger">点此复制</span></td>
		</tr>
	</volist>
	</table>
	</case>
	<default />参数错误
</switch>

</div>
<div class="modal-footer">
    <div class="page">
        {$_page}
    </div>
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
</div>

<script type="text/javascript" charset="utf-8">
	$("tr").hover().find("span.click_copy").toggleClass("hidden");
	
	$("span.click_copy").click(function(){
		var thisContent = $(this).text();
		window.clipboardData.setData('text',thisContent);
		alert('已复制到剪贴板');
	});
</script>